package com.leapp.sk.viewdelegate

import android.text.TextUtils
import android.view.View
import android.widget.TextView
import com.example.mvp.delegate.BaseAppDelegate
import com.leapp.sk.R
import com.example.mvp.view.SKTopBar
import com.leapp.sk.util.ImageCompressUtil

/**
 * 发现视图托管类
 * @author  chaohaipeng  on 2018/7/2.
 */
class FindDelegate : BaseAppDelegate() {
    override fun initWidget() {

    }

    override fun initLayoutRes(): Int {
        return R.layout.fragment_find
    }


    /**
     * 设置标题
     */
    fun setTitle(title: String?) {
        val topBar = getView<SKTopBar>(R.id.jtb_ff_find)
        topBar.rl_ljtb_left_layout?.visibility = View.GONE
        if (!TextUtils.isEmpty(title)) {
            topBar?.setTitle(title)
        }
    }

}